package com.ttxs.uaa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ttxs.uaa.entity.SysUser;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author 天天向上
 * @since 2021-07-26
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    int changeStatus(SysUser user);

    int resetPassword(SysUser user);

    int changePassword(@Param("userId") Long userId, @Param("platformId")String platformId,
                       @Param("newPassword")String newPassword, @Param("oldPassword")String oldPassword);
}
